#ifndef __GAMMA_H
#define __GAMMA_H


extern float gamma_table[256];
extern float cur_gamma;

void CreateGammaTable(float gamma, float *table);
void InitGamma(float gamma = 2.2f);
void compute_linear_to_gamma(unsigned char table[4096 * 3]);
void compute_linear_to_gamma_with_shoulder(unsigned char table[4096 * 3], float cut);

#endif